package 建造者模式;

public class LowPowerBuilder implements Builder {


    @Override
    public void buildCpu( Computer computer) {
        computer.setCpu("low---buildCpu");
    }

    @Override
    public void buildMem( Computer computer) {
        computer.setMem("low---buildMem");
    }

    @Override
    public void buildDisk( Computer computer) {
        computer.setDisk("low---buildDisk");
    }

    @Override
    public void buildPower( Computer computer) {
        computer.setPower("low---buildPower");
    }

    @Override
    public Computer createComputer() {
        Computer computer = new Computer();
        buildCpu(computer);
        buildMem(computer);
        buildDisk(computer);
        buildPower(computer);
        return computer;
    }
}
